package com.rich.login.controller;

import com.rich.common.result.CommonResponse;
import com.rich.login.service.BrokerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:张龙飞
 * @Date:2021/8/14
 */
@RestController
@RequestMapping("/yzm")
public class CodeController {
    @Autowired
    private BrokerService brokerService;

    /**
     *@描述
     *@参数  [phone]
     *@返回值  void
     *@创建人  zhanglongfei
     *@创建时间  2021/8/13
     *@修改人和其它信息
     */
    @GetMapping("/getCode")
    public CommonResponse getCode (@RequestParam("phone") String phone){
        return brokerService.getCode(phone);
    }
}
